/**
 * 
 */
package com.czmh.etc.app.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;
import com.czmh.etc.api.user.entity.EtcUser;
import com.czmh.etc.api.user.service.EtcUserService;

/**
 * @描述：示例程序
 * @author： Seven.
 * @创建日期：Apr 1, 2019 11:06:51 PM.
 * @版本：1.0.0
 */
@RestController
@RequestMapping("/demo")
public class DemoController {
    @Reference
    private EtcUserService etcUserService;
    
    @GetMapping("/test")
    public String demo() {
        EtcUser etcUser = new EtcUser();
//        etcUser.setId("3");
//        etcUser.setNickName("sdjkfhksdfh");
        etcUserService.insert(etcUser );
        return "";
    }
}
